<%@page import="Model.Business.BusinessClass"%>
<%@page import="Model.Supplier.SupplierList"%>
<%@page import="RssEasy.Core.CookieHelper"%>
<%@page import="Model.User.UserList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    CookieHelper cookie = new CookieHelper(request, response);
    UserList user = new UserList(pageContext);
    SupplierList sup = new SupplierList(pageContext);
    user.select().where("myid=?", cookie.Get("myid")).get_first_rows();
    sup.select().where("myid=?", cookie.Get("myid")).get_first_rows();
    BusinessClass bc = new BusinessClass(pageContext);
    bc.select("id,parentid,category").where("parentid=?", "0").query();
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>企企通-账号设置</title>
        <meta name="description" content="这里写网站内容描述" />
        <meta name="keywords" content="这里写关键词" />
        <meta name="Robots" contect="all">
        <link href="/css/reset.css" rel="stylesheet" type="text/css"/> 
        <link href="css/account.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <h1>账号设置</h1>
        <ol>
            <li class="selected">账号信息</li>
            <li>企业资料</li>
        </ol>
        <ul>
            <li class="selected">
                <div class="accinfo">
                    <b id="lxr">编辑</b>
                    <h2>联系人</h2>
                    <span>您的姓名将被显示在自己登录后的页面，以及用于团队内部协同。</span>
                    <h3><%=user.get("linkname")%></h3>
                    <div>
                        <input type="text" placeholder="请填写您的姓名" id="linkname"/><label for="linkname"></label><br/>
                    </div>
                </div>
                <div class="accinfo">
                    <b id="shouji">编辑</b>
                    <h2>手机号</h2>
                    <span>您当前的手机号<%=user.get("telphone")%>，手机号码可以用于登录、接受安全验证短信，以及收到业务提醒。</span>
                    <h3><%=user.get("telphone")%></h3>
                    <div>
                        <p><span>*提示：</span>修改绑定手机号码后无法使用当前手机号。请输入登录密码确认!</p>
                        <input type="password" id="pwd" placeholder="请填写您的登陆密码"/><label for="pwd"></label><br/>
                        <input type="tel" name="telphone" id="telphone" placeholder="请输入新手机号" /><button class="button">获取验证码</button><label for="telphone"></label><br/>
                        <input type="text" id="yzm" placeholder="请输入收到的短信验证码"/><label for="yzm"></label><br/>
                    </div>  
                </div>
                <div class="accinfo">
                    <b id="email_edit">编辑</b>
                    <h2>邮箱</h2>
                    <span>您当前邮箱<%=user.get("email")%>，您可以通过邮箱登录，同时用于账号安全以及系统通知等 。</span>
                    <h3><%=user.get("email")%></h3>
                    <div>
                        <p><span>*提示：</span>修改绑定邮箱后无法使用当前邮箱，请输入登录密码确认!</p>
                        <input type="password" id="pwd2" placeholder="请填写您的登陆密码"/><label for="pwd2"></label><br/>
                        <input type="tel" name="email" id="email" placeholder="请输入新邮箱号"/><button class="button">获取验证码</button><label for="email"></label><br/>
                        <input type="text" id="yzm2" placeholder="请输入收到的邮箱验证码"/><label for="yzm2"></label><br/>
                    </div>
                </div>
                <div class="accinfo">
                    <b id="pwd_edit">修改</b>
                    <h2>密码</h2>
                    <span>修改密码需要输入当前密码，请妥善保管您的密码。</span>
                    <div>
                        <input type="password" id="pwd3" placeholder="请输入旧密码"><label for="pwd3"></label><br/>
                        <input type="password" id="newPwd" placeholder="请输入新密码"><label for="newPwd"></label><br/>
                        <input type="password" id="ackPwd" placeholder="再次确认密码"><label for="ackPwd"></label><br/>
                    </div>
                </div>
                <div class="accinfo">
                    <b id="addAccount">新增</b>
                    <h2>新增子帐号</h2>
                    <span>请为您公司员工开通子账号，妥善保管您的账号和密码。</span>
                    <div id="son">
                        <input type="text" id="account" placeholder="请输入账号"><label for="account"></label><br/>
                        <input type="password" id="pwd4" placeholder="请输入密码"><label for="pwd4"></label><br/>
                        <input type="text" id="name" placeholder="请输入姓名"><label for="name"></label><br/>
                        <input type="text" id="phone" placeholder="请输入联系方式"><label for="phone"></label><br/>
                        <input type="text" id="position" placeholder="请输入工作岗位"><label for="position"></label><br/>
                        <input type="hidden" id="enterprise" value="<%user.write("enterprise");%>">
                    </div>
                </div>
                <div class="accinf">
                    <b id="apply" sort="<%sup.write("sort");%>">申请</b>
                    <h2>成为供应商</h2>
                    <span>赶快行动吧。</span>
                    <h3>完成企业资料审核之后即可供应商。</h3>
                    <div>
                        <span>正在审核中......</span>
                    </div>
                </div>
            </li>
            <li>
                <form id="form">
                    <table>
                        <!--<tr><td>ELS企业号：</td><td>els账号</td></tr>-->
                        <tr><td><i>* </i>企业名称：</td><td><input type="text" name="corpname"  placeholder="请输入企业名称" id="companyName" value="<%user.write("corpname");%>"/><label for="companyName"></label></td></tr>
                        <tr><td><i>* </i>主营类别：</td>
                            <td id="main_class">
                                <select id="one">
                                    <option>请选择</option>
                                    <% while (bc.for_in_rows()) {%>
                                    <option value="<%=bc.get("id")%>"><%=bc.get("category")%></option>
                                    <% }%>
                                </select>
                                <select id="two">
                                    <option>请选择</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <input id="mainproducts" type="hidden" value="<%user.write("mainbusiness");%>">
                                <div id="mainClass">
                                </div>
                            </td>
                        </tr>
                        <tr><td>企业规模：</td><td>
                                <select id="size">
                                    <option value="1">10人以下</option>
                                    <option value="2">10人~100人</option>
                                    <option value="3">100人~500人</option>
                                    <option value="4">500人~1000人</option>
                                    <option value="5">1000人~5000人</option>
                                    <option value="6">5000人~10000人</option>
                                    <option value="7">10000人~20000人</option>
                                    <option value="8">20000人~30000人</option>
                                    <option value="9">30000人以上</option>
                                </select>
                                <label for="size"></label>
                            </td></tr>
                        <tr><td>年营业额：</td><td>
                                <select  id="turnover">
                                    <option value="1">人民币100万以下</option>
                                    <option value="2">人民币100万~500万</option>
                                    <option value="3">人民币500万~1000万</option>
                                    <option value="4">人民币1000万~5000万</option>
                                    <option value="5">人民币5000万~1亿</option>
                                    <option value="6">人民币1亿~10亿</option>
                                    <option value="7">人民币10亿~15亿</option>
                                    <option value="8">人民币15亿~20亿</option>
                                    <option value="9">人民币20亿以上</option>
                                </select>
                                <label for="turnover"></label>
                            </td></tr>
                        <tr><td>经营模式：</td><td>
                                <div>
                                    <input type="hidden" value="<%sup.write("pattern");%>"/>
                                    <label><input type="radio" name="pattern" id="pattern1" value="1" checked/>&nbsp;生产型</label>
                                    <label><input type="radio" name="pattern" id="pattern2" value="2"/>&nbsp;贸易型</label>
                                    <label><input type="radio" name="pattern" id="pattern3" value="3"/>&nbsp;服务型</label>
                                    <label><input type="radio" name="pattern" id="pattern4" value="4"/>&nbsp;政府或其他机构</label>
                                </div>
                            </td></tr>
<!--                        <tr><td><i>* </i>所在地：</td><td id="addr">
                                                                <select id="province" name="shengid" value="1">
                                                                    <option area="" value="">省</option>
                                                                </select>
                                                                <select id="city" name="shiid">
                                                                    <option area="" value="">市</option>
                                                                </select>                            
                                                                <select id="county" name="xianid">
                                                                    <option area="" value="">县/区</option>
                                                                </select>                            
                            </td></tr>-->
                        <tr><td><i>* </i>详细地址：</td><td><input type="text" name="fulladress"  placeholder="请输入企业地址" id="address" value="<%user.write("fulladress");%>"/><label for="address"></label></td></tr>
                        <tr><td>企业网址：</td><td><input type="text" name="enterpriseurl"  placeholder="请输入企业网址" id="companyAddr" value="<%sup.write("enterpriseurl");%>"/><label for="companyAddr"></label></td></tr>
                        <tr><td><i>* </i>联系人姓名：</td><td>
                                <input type="text" name="linkname"  placeholder="请输入联系人姓名" id="person" value="<%user.write("linkname");%>"/>
                                <div id="sel" sel="<%user.write("sex");%>">
                                     性别：<label><input type="radio" name="sex" value="1" >先生</label>&nbsp;&nbsp;
                                    <label><input type="radio" name="sex" value="2">女士</label>
                                </div>
                                <label for="person"></label>
                            </td></tr>
                        <tr><td>职位：</td><td><input type="text" name="posts"  placeholder="请输入职位" id="jobTitle" value="<%user.write("posts");%>"/><label for="jobTitle"></label></td></tr>
                        <tr><td><i>* </i>电子邮件：</td><td><input type="text" name="email"  placeholder="请输入电子邮件" id="mail" value="<%user.write("email");%>"/><label for="mail"></label></td></tr>
                        <tr><td><i>* </i>手机：</td><td><input type="text" name="telphone"  placeholder="请输入手机号码" id="tel" value="<%user.write("telphone");%>"/><label for="tel"></label></td></tr>
                        <tr><td>联系电话(座机)：</td><td><input type="text" name="zuoji"  placeholder="请输入联系电话" id="Telephone" value="<%user.write("zuoji");%>"/><label for="Telephone"></label></td></tr>
                        <tr><td>微信：</td><td><input type="text" name="weixin" placeholder="请输入微信号码" id="weixin" value="<%user.write("weixin");%>"/><label for="weixin"></label></td></tr>
                        <tr><td>注册模式：</td>
                            <td>
                                <select id="schema">
                                    <option value="1">三证合一</option>
                                    <option value="2">一证一码</option>
                                </select>
                                <label for="schema"></label>
                            </td></tr>
                        <tr><td>社会信用代码：</td><td><input type="text" name="corpidcard"  placeholder="请输入社会信用代码" id="credit" value="<%user.write("socialcode");%>"/><label for="credit"></label></td></tr>
                        <tr class="code"><td>工商注册号：</td><td><input type="text" name="banklogin"  placeholder="工商注册号" id="banklogin" value="<%sup.write("banklogin");%>"/><label for="banklogin"></label></td></tr>
                        <tr class="code"><td>组织机构代码：</td><td><input type="text" name="organization"  placeholder="组织机构代码" id="organization" value="<%sup.write("organization");%>"/><label for="organization"></label></td></tr>
                        <tr class="code"><td>纳税人识别号：</td><td><input type="text" name="ratepaying"  placeholder="纳税人识别号" id="ratepaying" value="<%sup.write("ratepaying");%>"/><label for="ratepaying"></label></td></tr>
                        <tr><td>营业执照号：</td><td><input type="text" name="business"  placeholder="请输入营业执照号码" id="licence" value="<%sup.write("business");%>"/><label for="licence"></label></td></tr>
                        <tr><td>法定代表：</td><td><input type="text" name="legal"  placeholder="请输入法定代表人" id="juristicPerson" value="<%sup.write("legal");%>"/><label for="juristicPerson"></label></td></tr>
                        <tr><td>开户行：</td><td><input type="text" name="openbank"  placeholder="请输入开户行" id="atm" value="<%user.write("openbank");%>"/><label for="atm"></label></td></tr>
                        <tr><td>银行卡号：</td><td><input type="text" name="banknumber"  placeholder="请输入银行卡号" id="cardNumber" value="<%user.write("banknumber");%>"/><label for="cardNumber"></label></td></tr>
                        <tr><td>成立日期：</td><td><input type="text" id="found" class="Wdate" onFocus="WdatePicker({lang: 'zh-cn', dateFmt: 'yyyy-MM-dd'})" name='dateestable' readonly placeholder="请选择成立日期" value="<%user.write("dateestable");%>"><label for="found"></label></td></tr>
                        <tr><td>注册资本：</td><td><input type="text" name="yong"  placeholder="请输入注册资本" id="capital" value="<%sup.write("yong");%>"/>万元<label for="capital"></label></td></tr>
                        <tr><td>经营范围：</td><td><input type="text" name="scope"  placeholder="请输入经营范围" id="domain" value="<%user.write("scope");%>"/><label for="domain"></label></td></tr>
                        <tr><td>经营年限：</td><td id="deadline"><input type="text" id="start" class="Wdate" onFocus="WdatePicker({lang: 'zh-cn', dateFmt: 'yyyy-MM-dd'})" name='operatingstart' readonly placeholder="请选择开始时间"  value="<%user.write("operatingstart");%>"> 
                                <input type="text" id="end" class="Wdate" onFocus="WdatePicker({lang: 'zh-cn', dateFmt: 'yyyy-MM-dd'})" name='operatingend' readonly placeholder="请选择截止时间"  value="<%user.write("operatingend");%>"></td></tr>
                    </table>
                    <button id="sub" type="button">提交</button>
                </form>
            </li>
        </ul>  
        <%@include file="/inc/js_all.html" %>
        <script src="/js/placeholderfriend.js" type="text/javascript"></script>
        <script src="/wdatepicker/WdatePicker.js" type="text/javascript"></script>
        <script src="../data/arealist.js" type="text/javascript"></script>
        <script src="../data/dictdata.js" type="text/javascript"></script>
        <script type="text/javascript" src="js/account.js"></script>
        <script type="text/javascript">
                                    dictdata['area'] = AreaListData;
        </script>
    </body>
</html>
